package DB;

import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.Executor;

/**
 *  This Object represent a record in the TagsTable
 * @author RAM
 */

public class TagsTable 
{
	private String tagName;
	private int tagID;
	private Set<FilesTable> files;
	
	/**
	 * Constructor
	 */
	public TagsTable()
	{
		files = new HashSet<FilesTable>(1);
	}
	
	/**
	 * This function return all files in the table
	 * @return  {@link Set} of all files
	 */
	public Set<FilesTable> getFiles() 
	{
		return files;
	}
	
	/**
	 * This function sets her member files
	 * @param files a {@link Set}  of files
	 */
	public void setFiles(Set<FilesTable> files) 
	{
		this.files = files;
	}

	/**
	 * This function returns her member tagName
	 * @return {@link String}  tagName
	 */
	public String getTagName() 
	{
		return tagName;
	}
	
	/**
	 * This function sets her member tagName
	 * @param tagName {@link String} of tagName
	 */
	public void setTagName(String tagName) 
	{
		this.tagName = tagName;
	}
	
	/**
	 * This function returns her member tagID
	 * @return tagID
	 */
	public int getTagID() 
	{
		return tagID;
	}
	
	/**
	 * This function sets her member tagID
	 * @param tagID a tagID
	 */
	private void setTagID(int tagID) 
	{
		this.tagID = tagID;
	}
	
}
